/**
 * Created with IntelliJ IDEA.
 * Description:
 * https://gitee.com/li--jiaqiang/java-test.git
 * git pull
 * git pull origin master
 * git pull origin master --allow-unrelated-histories
 * User: 86187
 * Date: 2022-04-23
 * Time: 15:19
 */

//Scanner scan = new Scanner(System.in);

import java.util.Scanner;

public class TestDemo {

    public static void main(String[] args) {
        int i =1;
        for(i = 1;i <= 100;++i) {
            if(i % 15 != 0) {
                continue;
            }
            System.out.println(i);
        }

    }

    public static void main1(String[] args) {
        int i = 0;
        int sum1 = 0;
        int sum2 =0;
        int sum3 = 0;
        while(i <= 100) {
            if(i % 2 ==0) {
                sum1 += i;
            } else {
                sum2 += i;
            }
            sum3 += i;
            ++i;
        }
        System.out.println("奇数的和："+sum2);
        System.out.println("偶数的和："+sum1);
        System.out.println("1 ~ 100 的和："+sum3);
    }
}
